//index.js
//获取应用实例
var app = getApp();
Page({
  data: {
    webUrl:''
  },
   //下拉刷新
  onPullDownRefresh: function () {
    
  },
  
  onShow: function () {
    var that = this;
    if (this.data.webUrl==""){
      app.getUserInfo(function (userInfo) {
        that.setData({ webUrl: app.getUrl("/mall-admin/mall_shop/index") });
      })
    }
    
  },

  onLoad: function () {
    var that = this;
    app.getUserInfo(function (userInfo) {
        that.setData({ webUrl: app.getUrl("/mall-admin/mall_shop/index") });
    })
  }
})
